package Java9_8.Test_2;

public class Staff {
    private String name;//名字
    private  int age;//年龄
    private String sex;//性别
    private String zw;//职务
    private double pay;//薪水
    private String jobNumber;//工号
    public Staff(){

    }

    public Staff(String name, int age, String sex, String zw, double pay, String jobNumber) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.zw = zw;
        this.pay = pay;
        this.jobNumber = jobNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getZw() {
        return zw;
    }

    public void setZw(String zw) {
        this.zw = zw;
    }

    public double getPay() {
        return pay;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    @Override
    public String toString() {
        return "员工{" +
                "名字='" + name + '\'' +
                ", 年龄=" + age +
                ", 性别='" + sex + '\'' +
                ", 职位='" + zw + '\'' +
                ", 薪水=" + pay +
                ", 工号='" + jobNumber + '\'' +
                '}';
    }
}
